package com.wicket.okrbff.web.contorller;

import cn.hutool.core.bean.BeanUtil;
import com.wicket.okrbff.biz.service.ProgressPublicTechnicaCapacityService;
import com.wicket.okrbff.biz.service.dto.req.*;
import com.wicket.okrbff.biz.service.dto.res.*;
import com.wicket.okrbff.common.ro.OkrResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import java.util.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.wicket.okrapp.integration.FwAppProgressPublicTechnicaCapacityClient;
import com.wicket.okrapp.integration.dto.QuerySingleContentOperateProgressDetailRespDto;
import com.wicket.okrapp.integration.dto.QuerySingleContentOperateProgressDetailReqDto;
import com.wicket.okrbff.common.exception.Assert;
import com.wicket.okrapp.integration.dto.QueryMultiContentOperateProgressListRespDto;
import com.wicket.okrapp.integration.dto.QueryMultiContentOperateProgressListReqDto;
import com.wicket.okrbff.biz.service.dto.common.BffMultiContentOperateProgressDto;
import java.util.stream.Collectors;
import cn.hutool.core.collection.CollectionUtil;

/**
 * @author ：
 * @date ：
 *
 *
 * @version 1.0
 */
@Api(
  value = "ProgressPublicTechnicaCapacity",
  tags = { "ProgressPublicTechnicaCapacity" }
)
@RestController
// @RequestMapping("/oms/progressPublicTechnicaCapacity/")
public class ProgressPublicTechnicaCapacityController {

  @Autowired
  ProgressPublicTechnicaCapacityService progressPublicTechnicaCapacityService;
/**
   * B3查询单内容操作进度详情(管理)
   * gen by moon at 5/11/2023, 8:41:02 PM
   */
    @PostMapping("/oms/mgt/progressPublicTechnicaCapacity/querySingleContentOperateProgressDetail")
    @ApiOperation(value = "B3查询单内容操作进度详情(管理)", response = OkrResult.class)
    public OkrResult<BffQuerySingleContentOperateProgressDetailRespDto> querySingleContentOperateProgressDetail(@RequestBody(required=false) @Validated BffQuerySingleContentOperateProgressDetailReqDto reqDTO){
        return OkrResult.success(progressPublicTechnicaCapacityService.querySingleContentOperateProgressDetail(reqDTO));
    }
/**
   * B3查询多内容操作进度列表(管理)
   * gen by moon at 5/11/2023, 8:50:29 PM
   */
    @PostMapping("/oms/mgt/progressPublicTechnicaCapacity/queryMultiContentOperateProgressList")
    @ApiOperation(value = "B3查询多内容操作进度列表(管理)", response = OkrResult.class)
    public OkrResult<BffQueryMultiContentOperateProgressListRespDto> queryMultiContentOperateProgressList(@RequestBody(required=false) @Validated BffQueryMultiContentOperateProgressListReqDto reqDTO){
        return OkrResult.success(progressPublicTechnicaCapacityService.queryMultiContentOperateProgressList(reqDTO));
    }
}
